#appmsg-table
	table.table.table-striped.table-bordered
		tbody(data-bind="foreach:appmsgs")
			tr
				td(data-bind="text:")


script
	var AppmsgVM = function(){
		var self = this;
		self.appmsgs = ko.observableArray([]);
		self.page = ko.observable('');
		self.fetch = function(){
			$('#loading').modal('show');
			$.ajax({
				url:'admin/appmsgs?page='+self.page(),
				success:function(data){
					self.appmsgs(data);
				}
			})	
		}


	}

